package org.x.usermod.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class LoginDTO {
    @NotEmpty
    private String username;
    //密码必须包含数字和字母，长度在6-12之间
    @Pattern(regexp = "^(?=.*[0-9])(?=.*[a-zA-Z]).{6,12}$", message = "密码必须包含数字和字母，长度在6-12之间")
    private String password;
}
